
module.exports = {
  // 打包后资源404
  publicPath: './',

  // 关闭ESLint
  lintOnSave: false,

  configureWebpack: {
    externals: {
      'AMap': 'AMap'
    }
  },

  devServer: {
    https: false,
    proxy: {
      '^/api': {
        target: 'http://127.0.0.1:8000',
        changeOrigin: true,
        onProxyReq: function (proxyReq) {
          proxyReq.removeHeader('origin')
        }
      }
    },
    before (app) {
    }
  }
}
